package com.example.chat.repository;

import com.example.chat.model.Company;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

/**
 * @Description
 * @Date 2022/11/17 17:13
 * @Author pq
 */
public interface CompanyRepository extends JpaRepository<Company,String> {

    Optional<Company> findByIdAndDeletedIsFalse(String companyId);
}
